package com.zy.openchat.core.model.redpacket;

import android.os.Parcel;
import android.os.Parcelable;

public class RP_Msg implements Parcelable {
    //红包标识
    public long redPacketId;
    //红包创建人
    public long from;
    //标题
    public String title;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.redPacketId);
        dest.writeLong(this.from);
        dest.writeString(this.title);
    }

    public RP_Msg() {
    }

    protected RP_Msg(Parcel in) {
        this.redPacketId = in.readLong();
        this.from = in.readLong();
        this.title = in.readString();
    }

    public static final Creator<RP_Msg> CREATOR = new Creator<RP_Msg>() {
        @Override
        public RP_Msg createFromParcel(Parcel source) {
            return new RP_Msg(source);
        }

        @Override
        public RP_Msg[] newArray(int size) {
            return new RP_Msg[size];
        }
    };
}
